package com.meilai.project.vo.business.sale;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.math.BigDecimal;

/**
 * @author xchen
 * @since 2022-03-20
 */
@Data
@ApiModel
public class MediaSpecTypeCountAmountVO {
    @ApiModelProperty("媒体类型规格id")
    private Long media_type_spec_id;
    @ApiModelProperty("价格id")
    private Long media_type_spec_price_id;
    @ApiModelProperty("显示名称")
    private String name;
    @ApiModelProperty("对应数量")
    private Long spec_count;
    @ApiModelProperty("对应金额")
    private BigDecimal amount;
    @ApiModelProperty("天单价")
    private BigDecimal day_price;
    @ApiModelProperty("周单价")
    private BigDecimal week_price;
    @ApiModelProperty("月单价")
    private BigDecimal month_price;
    @ApiModelProperty("尺寸")
    private String size;

    private Boolean has_price_day;
    private Boolean has_price_week;
    private Boolean has_price_month;

    private Long media_type_id;

    public String groupKey() {
        return this.media_type_spec_id + "-" + this.media_type_spec_price_id + "-" + this.size;
    }
}
